package router

import (
	"github.com/gin-gonic/gin"
	"go-gin-api/app/controller/v1"
)

func init() {
	routerNoCheckRole = append(routerNoCheckRole, InitUserRouter)
}
func InitUserRouter(Router *gin.RouterGroup) {
	userRouter := Router.Group("user")
	userController := v1.UserController{Model: "用户模块"}
	{
		userRouter.POST("/add", userController.AddUser) // 管理员注册账号
		userRouter.POST("/sign", userController.Sign)   // 登录
	}
}
